package com.gdziarmaga.webshop.web.navigation;

import java.io.IOException;
import java.io.Serializable;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.servlet.ServletException;

import com.gdziarmaga.webshop.web.utils.FacesUtils;

@ManagedBean(name="jsfutils")
@RequestScoped
public class JSFUtils implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3121150343067005023L;

	public void redirect(String url) throws ServletException, IOException{
		FacesUtils.redirect("/faces/"+url+".xhtml");
	}
}
